let str = 'abc123de45fgh6789qqq111';
function getNums(str){
    let temp = '';
    let ans = [];
    let len = str.length;
    for(let i = 0; i < len; i++){
        // console.log(str[i])
        if(!isNaN(str[i])){
            // console.log(str[i])
            temp+=str[i];
        }else{
            if(temp){
                ans.push(temp);
                temp = '';
            }
        }
    }
    if(temp) ans.push(temp);
    console.log(ans);
    return ans;
}
getNums(str);

let reg = /\d+/g;
let ans = str.match(reg);
console.log(ans);

let tag = '<div name="hh" style="bg:xixi;js:ss">hello</div>'
let regtag = /^<(\w+)\s+(\w+)="(\w+)"\s+(\w*)[=]?"\s*(\w*)[:]?(\w*)[;]?(\w*)[:]?(\w*)"\/?>(\w*)(?:<\/\1>)$/gi;
if(regtag.test(tag)){
    console.log(RegExp.$1);
    console.log(RegExp.$2);
    console.log(RegExp.$3);
    console.log(RegExp.$4);
    console.log(RegExp.$5);
    console.log(RegExp.$6);
    console.log(RegExp.$7);
    console.log(RegExp.$8);
    if(RegExp.$9) console.log(RegExp.$9);
}

let chu = '<input type="hidden" id="antiforgerytoken" value="hello"/><div class="backToTop" title="回到顶部" style="display: none;">回到顶部</div>'

